package com.party.service;

import java.util.Date;
import java.util.List;

import com.party.domain.Signin;
import com.party.domain.User;
import com.party.domain.UserRole;

public interface UserService 
{
	
	//增加管理员帐号
	public int addAdminUser(User user);
	//增加管理员帐号权限
	public void addRoleAdmin(int uid);
	
	//分页查询所有用户
	public List<User> findAllUser(int page,int size) throws Exception;
	
	//管理员更新用户所有数据
	public void updateAllDate(User users,int role_id) throws Exception;
	
	public User userREgisterInit(String Email,String Password,String Name,String Phone,String state);
	
	public int userRegister(User user);
	public void addUserRole(int uid);
	
	public String sendRegisterEmail(String Email);
	public String sendPasswordEmail(String Email,String Password);
	
	
	public String activateUser(String email);
	
	public User loginCheck(String Email,String Password);
	public User whetherRegister(String Email);
	
	public String ChangeUserPassword(String Email,String Password);
	
	public Object getUserMessage(int uid);
	public int str_int(String str);
	
	public Signin findSignin(int id);
	public void insterSigninUser(int id,Date time);
	
	
	public boolean  UpdateUserIntegral(int id);
	
	public boolean judgeTime(Date date1,Date date2);
	
	
	public void changeUserIcon(int id,String icon);
	public void changeUserDate(String phone,String name,int id);
	
}
